package com.ws.entity;

import lombok.Data;

/**
 * @author 王硕
 * @version jdk21
 * @className Animal1
 * @description
 * @date 2024/11/7 21:52
 */
@Data
public class Animal1 {
    protected String name;
    protected String color;

    public Animal1(String name, String color) {
        this.name = name;
        this.color = color;
    }

    // 移动行为
    public void move() {
        System.out.println(name + "正在移动");
    }
}
